<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <script src="./lib/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <button v-on:click='say("hi",$event)'>Say hi</button>
            <button v-on:click="btn">按钮</button>
        </div>
        <script>
            var app = new Vue({
                el: '#app',
                data: {},
                methods: {
                    say: function(hi, event) {
                        console.log(hi);
                        console.log(event.target.innerHTML);
                    },
                    btn: function(event) {
                        console.log(event.target.innerHTML);
                    }
                }
            });
        </script>
    </body>
</html>
